<?php 
include_once('connection/connection.php');
include('header.php');
include('menu.php');
include('config.php');

if(isset($_POST['submit']))
{ 
	$form_id=$_POST['form_id'];
	$_SESSION['form_id']=$form_id;
	header('Location: view_q1_1.php');
}	
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/style_question.css" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript" src="js/validate.js"></script>
<script language="Javascript" type="text/javascript" src="village_ajax_q1.js"></script>
<script language="javascript" type="text/javascript">
function validate()
{
	valid = true;
	if (document.view_main_q1.district.selectedIndex == 0)
    {
        alert ( "Please select District Name" );
        valid = false;
    }
	if (document.view_main_q1.form_id.selectedIndex == 0)
    {
        alert ( "Please select Form Id" );
        valid = false;
    }
	return valid;
}	
</script>
<title>View main</title>
</head>
<body>
<div align="center">
<form action="" method="post" enctype="multipart/form-data" onSubmit="return validate()" name="view_main_q1">
	<table border="0" width="746" id="table1" cellspacing="0" cellpadding="0">
	<tr bgcolor="FF9966">
		<td height="29" align="left" valign="top" bgcolor="#FF9966" colspan="4">&nbsp;</td>
	</tr>
	<tr>
	<td bgcolor="#E5E5E5" align="center" colspan="4">
	<span lang="en-us">&nbsp;</span><span lang="en-us" style="font-size: 8.5pt"><font face="Verdana" color="#006699"><b>Village wise view Questionnaire-1</b></font></span></td>
</tr>
<tr><td bgcolor="#E5E5E5" align="left" colspan="4">&nbsp;</td>
</tr>
<tr><td align="left" colspan="4">&nbsp;</td>
</tr>
		<tr>
			<td width="130" height="31">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;District</font></td>
			<td width="240"><font id=district>
				<select name="district" id="district" class="txt">
				<option value="0">===Select District===</option>
        		</select></font><span id="districtLoader"></span>	  	  </td>
		  <td width="133" height="31">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">&nbsp;Block</font></td>
			<td width="243"><font id=block>
				<select name="block" id="block" class="txt">
				<option value="0">===Select Block===</option>
        		</select></font><span id="blockLoader"></span></td>
	  </tr>
		  <tr>
			<td width="130" height="30"><font style="font-size: 8.5pt" face="Verdana" color="#000000">Panchayat</font></td>
			<td width="240"><font id="panchayat">
		  	<select name="panchayat" id="panchayat" class="txt">
				<option value="0">==Select Panchayat==</option>
        	</select></font><span id="panchayatLoader"></span></td>
			<td width="133"><font style="font-size: 8.5pt" face="Verdana" color="#000000">Village</font></td>
			<td width="243"><font id="village">
		  	<select name="village" id="village" class="txt">
				<option value="0">===Select Village===</option>
        	</select></font><span id="villageLoader"></span></td>
		</tr>
		
		<tr>
		  <td width="133" height="29"><font style="font-size: 8.5pt" face="Verdana" color="#000000">Form Id</font></td>
			<td width="246"><font id="form_id">
		  	<select name="form_id" id="form_id" class="txt">
				<option value="0">===Select form_id===</option>
        	</select></font><span id="formLoader"></span></td>
		 
		</tr>
		
		<tr>
			<td colspan="4">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="4">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="4">
			
			<p align="center">
			<input type="submit" value="View" name="submit" style="border:1px solid #000000; font-size: 8pt; font-family: Verdana; " onClick="view_validate()">&nbsp;</p>
			</td>
		</tr>
	</table>
</form>
</div>
</body>
</html>
